package com.campus.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 读取JWT令牌配置
 *
 * @author TaiZai
 * @data 2024/10/21 17:07
 */
@Component
@ConfigurationProperties(prefix = "campus.jwt")
@Data
public class JwtProperties {

    // 管理员相关
    private String adminSecretKey;
    private long adminTtl;
    private String adminTokenName;

    // 用户相关
    private String userSecretKey;
    private long userTtl;
    private String userTokenName;
}
